//	--------------------------------------------------------------------
//	Copyright(C) 2006,2007 Zhao Yukun. All rights reserved.
//	This file is a part of the Xeres system.
//	Xeres 2007
//	Contact : xeres.engine@gmail.com
//	$(reservedInfo)
//	$(reservedDeclaration)
//	--------------------------------------------------------------------
///	@file	<COffscreenRenderTarget9.cpp>
///	@path	~/src/graphics/dx9/
///	@date	2008/09/21
///	@desc	.

#include "config/config.h"

#include "graphics/DxHelpers.h"
#include "graphics/dx9/COffscreenRenderTarget9.h"

namespace xeres {
	
	IMPL_IOBJECT_CLASS( COffscreenRenderTarget9 );

	// COffscreenRenderTarget9
	COffscreenRenderTarget9::COffscreenRenderTarget9( RefWeak<CColorRenderTarget9> colorSuf , RefWeak<CDepthRenderTarget9> depthSurf )
	{

	}
	// ~COffscreenRenderTarget9
	COffscreenRenderTarget9::~COffscreenRenderTarget9( void )
	{

	}
	// ApplyTarget
	bool COffscreenRenderTarget9::ApplyTarget( RefWeak<IDevice> device )
	{
		return m_colorSurf->ApplyTarget( device ) && m_depthSurf->ApplyTarget( device );
	}
	// OnLostDevice
	bool COffscreenRenderTarget9::OnLostDevice( void )
	{
		return true;
	}

	// OnResetDevice
	bool COffscreenRenderTarget9::OnResetDevice( RefWeak<IDevice> device )
	{
		return true;
	}

} // namespace xeres
